import request from '@/utils/request'

// 查询采购记录管理列表
export function listRecords1(query) {
  return request({
    url: '/system/records1/list',
    method: 'get',
    params: query
  })
}

// 查询采购记录管理详细
export function getRecords1(recordId) {
  return request({
    url: '/system/records1/' + recordId,
    method: 'get'
  })
}

// 新增采购记录管理
export function addRecords1(data) {
  return request({
    url: '/system/records1',
    method: 'post',
    data: data
  })
}

// 修改采购记录管理
export function updateRecords1(data) {
  return request({
    url: '/system/records1',
    method: 'put',
    data: data
  })
}

// 删除采购记录管理
export function delRecords1(recordId) {
  return request({
    url: '/system/records1/' + recordId,
    method: 'delete'
  })
}
